# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sslnuke
pkgver=5.c5faeaa
pkgrel=2
groups=('blackarch' 'blackarch-cracker' 'blackarch-proxy')
pkgdesc='Transparent proxy that decrypts SSL traffic and prints out IRC messages.'
url='https://github.com/jtripper/sslnuke'
arch=('x86_64' 'aarch64')
license=('GPL2')
makedepends=('git')
source=("git+https://github.com/jtRIPper/$pkgname.git"
        "$pkgname.install")
sha512sums=('SKIP'
            '8556c114eb94221fb82bbf244fc300edb0f17ca1d14da4e786aa606befcb4cf8bdf1cefe4fc9e84b195b58ca05242adc3059e58ed4ffba4412a0aa881a76848e')
install="$pkgname.install"

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

